
import {
  GET_CAPTCHA,CLEAR_CAPTCHA
} from '../constants/user'

import { createReducer } from 'redux-immutablejs'
import immutable, {fromJS } from 'immutable'

// 生成验证码图片
export const captcha = createReducer(fromJS({}), {
  [GET_CAPTCHA]: (state, action) => {
    return fromJS(action.data)
  },
  [CLEAR_CAPTCHA]:(state, action) => {
    return fromJS({})
  }
  
})
















